<?php

/**
 * Description of LoginForm
 * Date Created Mar 17, 2012 3:59:24 PM
 * @package 
 * @author Bryan Salazar
 * 
 */
class LoginForm extends \Mirage\Abstraction\AbstractForm
{
    public $username;
    public $password;
    public $labelUsername;
    public $labelPassword;
    public $csrf;
    
    public function __construct() {
        $model = new UserModel();
        $this->setModel($model);
        $this->init();
    }
    
    public function init() {
        $this->labelUsername = $this->label('username');
        $this->username = $this->inputTextField('username',array('class'=>'text'));
        
        $this->labelPassword = $this->label('password');
        $this->password = $this->inputPasswordField('password',array('class'=>'text'));
    }
}
